﻿Public Class repAlumnos
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub GridView1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles Grilla.SelectedIndexChanged
        Dim dni As Integer
        If Grilla.SelectedRow Is Nothing Then Return

        Dim G As GridViewRow = Grilla.SelectedRow

        dni = Integer.Parse(G.Cells(1).Text)

        Response.Redirect("setCursoAlumno.aspx?dni=" & dni.ToString)
    End Sub
End Class